﻿using ShanNiang.Service.Enumerate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShanNiang.Mvvm.UiServices
{
    public interface IUiService
    {
        /// <summary>
        /// 提示错误信息
        /// </summary>
        /// <param name="message"></param>
        /// <param name="codeType"></param>
        void GrowlError(string message, CodeType codeType, Exception? exception = null);
        /// <summary>
        /// 提示消息
        /// </summary>
        /// <param name="message"></param>
        /// <param name="codeType"></param>
        void GrowlInfo(string message, CodeType codeType);
        /// <summary>
        /// 提示警告信息
        /// </summary>
        /// <param name="message"></param>
        /// <param name="codeType"></param>
        void GrowlWarning(string message, CodeType codeType, Exception? exception = null);

        /// <summary>
        /// 提示成功信息  
        /// </summary>
        /// <param name="message"></param>
        /// <param name="codeType"></param>
        void GrowlSuccess(string message, CodeType codeType);

    }
}
